home *** CD-ROM | disk | FTP | other *** search
/ Collection of Tools & Utilities / Collection of Tools and Utilities.iso / batchut / battimer.zip / BATTIMER.DOC < prev    next >
Text File  |  1988-06-18  |  2KB  |  58 lines

  1.  
  2.  
  3.                            BATCH TIMER DOCUMENTATION
  4.                            Written by Curtis Harper
  5.                                LAKELAND RBBS-PC
  6.                                Benton, Kentucky
  7.                               DATA# (502)527-7617
  8.  
  9.  
  10.  
  11. This program was written to fill a need for a delay timer for my autoexec
  12. batch file.  I wanted a program that would allow a 5 second delay before
  13. automatically executing my RBBS-PC program at start-up or reboot.  If
  14. necessary I could abort the RBBS and return to DOS.  
  15.  
  16. The program is written and complied in Microsoft Quickbasic 4.  The source
  17. code and complied exe file are given along with this documentation in the
  18. BATTIMER.ARC file.
  19.  
  20. To run this program you must make some changes to your autoexec.bat file.
  21. First find a point where you can break the file before autoexec calls the
  22. program which you automatically run.  If BATTIMER is allowed to time out
  23. by not pressing any key, the autoexec file will be allowed to continue.
  24. If a key is pressed before time out, BATTIMER will dynamically create a
  25. BAT file called TIME.BAT.  After BATTIMER is called your autoexec file
  26. should look for the TIME.BAT.  If it exists the autoexec file should return
  27. to the DOS prompt.  
  28.  
  29. For an example assuming AUTOEXEC is on harddrive C:
  30.                             
  31.                              OLD AUTOEXEC.BAT FILE
  32.                      -------------------------------------
  33.                       ECHO OFF
  34.                       GETCLOCK
  35.                       RBBS-PC
  36.                       ECHO ON
  37.  
  38.  
  39.  
  40.                              NEW AUTOEXEC.BAT FILE
  41.                      -------------------------------------              
  42.                       ECHO OFF
  43.                       GETCLOCK
  44.                add>   IF EXIST C:TIME.BAT DEL C:TIME.BAT
  45.                add>   BATTIMER
  46.                add>   IF EXIST C:TIME.BAT GOTO EXIT
  47.                       RBBS-PC
  48.                add>   :EXIT
  49.                add>   IF EXIST C:TIME.BAT DEL C:TIME.BAT
  50.                       ECHO ON
  51.  
  52.  
  53. With BATTIMER installed you can regain control of your computer if you have
  54. your autoexec.bat file setup for automatic program execution.  I would be
  55. pleased to know of any additional uses for the program and any changes or
  56. suggestions you might have.
  57.  
  58.